< previous page page_382 next page >

Page 382
As you begin to write more advanced Visual Basic applications, at some point you will probably want to utilize the Windows Multiple Document Interface (MDI). The MDI allows your programs to work with multiple forms contained within a parent form. Using the MDI makes your interface cleaner than one that has forms scattered about the screen.
The MDI standard can enhance your programs in two ways. First, you can have one container form that acts as the background for your overall application. If a user moves the container form, the child forms contained inside move as well, which helps keep your application's interface organized and self-contained. Second, and perhaps even more powerful, your users can work on multiple documents at one time. MDI applications allow the use of multiple instances of the same form, which can add a great deal of power and flexibility to your programs.
Introducing MDI Applications
Many of the applications that you create in Visual Basic consist of a series of independent forms, like the ones shown in Figure 17.1. Each of these forms is displayed separately on the screen and is moved, maximized, or minimized separately from any other form. With this type of interface, you cannot easily organize the forms or deal with them as a group. Even with this limitation, this interface is a good one to use for many programs and is probably the most prevalent interface design.
0382-01.jpg
Figure 17.1
This program's user interface consists of two forms
that appear to have no visual relationship to each other.
An alternative to this standard interface is the Multiple Document Interface, or MDI. This type of application has one parent form that contains most of the other forms in the program. Other forms can be child forms, which are contained within the parent, or standard forms, which are

 
< previous page page_382 next page >